﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace leapt.Common
{
    /// <summary>
    /// 用于统一的返回前台数据格式
    /// </summary>
    public class ApiResponse
    {

        public ApiResponse(int? code, Object data, string message, bool status)
        {
            Code = code;
            Data = data;
            Message = message;
            Status = status;
        }

        /// <summary>
        /// 状态代码
        /// </summary>
        public int? Code { get; set; }

        /// <summary>
        /// 返回的数据
        /// </summary>
        public object Data { get; set; }

        /// <summary>
        /// 错误消息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Status { get; set; }
    }
}
